home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 95 API Bible
/
Windows 95 API Bible 3 Disc Set.iso
/
Win32 API Bible Book 2 of 3
/
CHAPTER6
/
SETCOLOR.RC
< prev
next >
Wrap
Text File
|
1996-03-06
|
2KB
|
61 lines
#include "windows.h"
#include "setcolor.h"
#include "winver.h"
APP ICON DISCARDABLE "GENERIC.ICO"
CIRCLE ICON DISCARDABLE "CIRCLE.ICO"
RECTANGLE ICON DISCARDABLE "RECT.ICO"
CROSS ICON DISCARDABLE "CROSS.ICO"
CHECK ICON DISCARDABLE "CHECK.ICO"
MYAPP MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Options...", IDM_OPTIONS
END
POPUP "&Help"
BEGIN
MENUITEM "&About ListView_SetBkColor()...", IDM_ABOUT
END
END
ABOUTBOX DIALOG 22, 17, 171, 43
STYLE DS_MODALFRAME | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
CAPTION "ListView_SetBkColor()"
FONT 8, "Helv"
{
CONTROL "MyApp", -1, "STATIC", SS_ICON | WS_CHILD | WS_VISIBLE, 3, 2, 16, 16
CONTROL "Generic Application", DLG_VERFIRST, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 28, 4, 100, 8
CONTROL "OK", IDOK, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 116, 26, 50, 14
}
OPTIONSDIALOG DIALOG DISCARDABLE 22, 20, 132, 87
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Text Color:",-1,6,15,37,8
EDITTEXT IDC_TR,51,13,22,12,ES_AUTOHSCROLL
EDITTEXT IDC_TG,75,13,21,12,ES_AUTOHSCROLL
EDITTEXT IDC_TB,99,13,22,12,ES_AUTOHSCROLL
LTEXT "Text Bkgnd:",-1,6,31,42,8
EDITTEXT IDC_TBR,51,28,22,12,ES_AUTOHSCROLL
EDITTEXT IDC_TBG,75,28,21,12,ES_AUTOHSCROLL
EDITTEXT IDC_TBB,99,28,22,12,ES_AUTOHSCROLL
LTEXT "Background:",-1,7,45,41,8
EDITTEXT IDC_BR,51,43,22,12,ES_AUTOHSCROLL
EDITTEXT IDC_BG,75,43,21,12,ES_AUTOHSCROLL
EDITTEXT IDC_BB,99,43,22,12,ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,13,66,50,14
PUSHBUTTON "Cancel",IDCANCEL,70,66,50,14
END